# Maintainer: GH Cao

_realname=sse2neon
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=1.6.0
pkgrel=1
pkgdesc="sse2neon - A translator from Intel SSE intrinsics to Arm/Aarch64 NEON implementation (mingw-w64)"
arch=('any')
mingw_arch=('clangarm64')
url='https://github.com/DLTcollab/sse2neon'
license=('MIT')
source=("https://github.com/DLTcollab/${_realname}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('06f4693219deccb91b457135d836fc514a1c0a57e9fa66b143982901d2d19677')

package() {
  cd "${srcdir}/${_realname}-${pkgver}"
  install -Dm644 "${srcdir}/${_realname}-${pkgver}/LICENSE" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/LICENSE"
  install -Dm644 "${srcdir}/${_realname}-${pkgver}/sse2neon.h" "${pkgdir}${MINGW_PREFIX}/include/${_realname}/sse2neon.h"
}
